package com.assignwork.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @ClassName DailyShiftSubmitDTO
 * @Description 每日作业班组提交DTO
 * @Author dujianyu
 * @Date 2023/12/1 15:04
 */
@Data
public class DailyShiftSubmitDTO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "日期")
    private LocalDate workDate;

    @ApiModelProperty(value = "时间段")
    private String timeSpace;

    @ApiModelProperty(value = "班组")
    private String dailyShift;

    @ApiModelProperty(value = "调度主任")
    private String assignLeader;

}
